<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' ><em>秒杀活动列表</em></a>  
        <span>|</span>
        <a href='<?php echo U('Activity/seckill_pro','add=1'); ?>' ><em>添加秒杀活动</em></a>
        <span>|</span>
        <a href='<?php echo U('Activity/seckill_result');?>' class="on"><em>秒杀活动结果</em></a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0">
      <thead>
          <tr>
            <th align="center">活动编号</th>
            <th align="center">邮箱</th>           
            <th align="center">价格</th>
            <th align="left">商品信息</th>
            <th align="center">时间</th>           
            <th align="center">使用状态</th>
          </tr>
      </thead>
                <tbody>
                    <?php 
                    foreach($list as $k=>$v):?>
                    <tr>
                        <td align="center"><?php echo $v['seckill_sn']?></td>
                        <td align="center"><?php echo $v['email'];?></td>                       
                        <td align="center"><?php echo $v['price']?></td>
                        <td style="margin-right:5px;">
                        <a href="<?php echo $v['pid']['url'];?>" target="_blank" style="margin-right:10px;"><img src="<?php echo $v['pid']['small_img']; ?>" /></a><?php echo $v['pid']['name'];?></td>
                        <td align="center"><?php echo date('Y-m-d H:i:s', $v['time'])?></td>
                        <td align="center">
                        <?php if($v['used']==0){echo "未使用";}elseif($v['used']==1){echo "已使用";}else{echo "已过期";}?></td>
                    </tr>
                    <?php endforeach;?>
		</tbody>
	</table>
	<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
